package com.ytjj.qmyx.mall.model.dto;

import com.ytjj.qmyx.mall.model.Product;
import com.ytjj.qmyx.mall.model.UsersFake;
import lombok.Data;
import org.springframework.beans.BeanUtils;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
public class OldForNewProductDto {

    private Integer id;

    private String productName;
    /**
     * 商品主图
     */
    private String productImg;
    /**
     * 商品场景图
     */
    private String sceneImg;

    private String volumeStr;

    private BigDecimal originalPrice;

    private BigDecimal activityMax;

    private BigDecimal price;

    private BigDecimal curPrice;

    private Integer stock;

    private String extra;
    /**
     * 状态（0：未领取，1：领取）
     */
    private int isReceiveSubsidy;

    /**
     * 描述
     *
     * @mbg.generated
     */
    private String descr;

    /**
     * 假用户头像
     **/
    private List<String> usersFake;

    private Integer num;

    /**
     * 倒计时
     */
    private Date time;

    /**
     * 活动类型
     */
    private String activityType;

    /**
     * 差价=price - activity_max
     */
    private BigDecimal diffPrice;

    /**
     * 活动栏目ID：可以多个,分割
     */
    private String activityColumnIds;
    /**
     * 活动主图
     */
    private String activityMainImg;

    /**
     * 虚拟库存( h5销售渠道使用)
     */
    private Integer virtualStock;


    public OldForNewProductDto(){
    }

    public OldForNewProductDto(Product product){
        BeanUtils.copyProperties(product,this);
    }

}
